package com.qunar.toku.proxy;

import java.io.Serializable;

public final class RequestProtocol implements Serializable {
	private static final long serialVersionUID = 1675991188209117209L;
	private Object clazz;
	private String method;
	private Object params;
	private String key;

	public RequestProtocol(Object clazz, String method, Object params, String key) {
		this.clazz = clazz;
		this.method = method;
		this.params = params;
		this.key = key;
	}

	public String getKey() {
		return key;
	}

	public Object getClazz() {
		return clazz;
	}

	public String getMethod() {
		return method;
	}

	public Object getMessage() {
		return params;
	}

	public void setMessage(Object message) {
		this.params = message;
	}

	@Override
	public String toString() {
		return "RequestProtocol [clazz=" + clazz + ", method=" + method + ", params=" + params + "]";
	}
	
	

}
